package com.lzx.makeFriend.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzx
 * @since 2022-10-05
 */
@Getter
@Setter
@ApiModel(value = "Problem对象", description = "")
public class Problem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("问题标题")
    private String title;

    @ApiModelProperty("发布人")
    private Integer userId;

    @ApiModelProperty("发布人昵称")
    private String nickname;

    @ApiModelProperty("发布人头像")
    private String avatar;

    @ApiModelProperty("浏览量")
    private Long views;

    @ApiModelProperty("点赞数")
    private Long likeCount;

    @ApiModelProperty("回复数")
    private Long reply;

    @ApiModelProperty("是否解决(0表示未解决，1表示解决)")
    private String solve;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}
